<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.min.css"/>
    <js file="__STATIC__/jquery/jquery-1.7.2.min.js"/>
    <script type="text/javascript">
    	var CONTROLLER = "__CONTROLLER__";
    </script>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    <css file="__STATIC__/hdjs/hdui.css"/>
    <js file="__CONTROLLER_VIEW__/js/js.js"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr  pid=0>
            <td width="30"></td>
            <td>分类id</td>
            <td>分类名称</td>
            <td>分类标题</td>
            <td>分类排序</td>
            <td>静态目录</td>
            <td>列表静态</td>
            <td>内容静态</td>
            <td>是否显示</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        
        <tbody>
        	<foreach from="$data" key="$k" value="$v">
            <!-- <?php p($data); ?> -->
        		<tr pid="{$v.pid}" cid="{$v.cid}">
	           	<td width="30">
	        		<a href="javascript:;" class="glyphicon glyphicon-plus a-plus" cid="{$v.cid}"></a>
	        		</td>
	           	<td>{$v.cid}</td>
		            <td>{$v._name}</td>
		            <td>{$v.ctitle}</td>
		            <td>{$v.csort}</td>
		            <td>{$v.htmldir}</td>
		            <td>
		            	<if value="$v['is_listhtml']">
		            		<span class="glyphicon glyphicon-ok"></span>
		            	<else/>
		            		<span class="glyphicon glyphicon-remove"></span>
		            	</if>
		            </td>
		            <td>
		            	<if value="$v['is_archtml']">
		            		<span class="glyphicon glyphicon-ok"></span>
		            	<else/>
		            		<span class="glyphicon glyphicon-remove"></span>
		            	</if>
		            </td>
		            <td>
		            	<if value="$v['is_show']">
		            		<span class="glyphicon glyphicon-ok"></span>
		            	<else/>
		            		<span class="glyphicon glyphicon-remove"></span>
		            	</if>
		            </td>
	            	<td width="200">
		            	<a href="{|U:'Category/add_son',array('cid'=>$v['cid'])}" class="btn btn-primary btn-xs">添加子分类</a>
                        <a href="{|U:'Category/edit',array('cid'=>$v['cid'])}" class="btn btn-info btn-xs">修改</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Category/del_data',array('cid'=>$v['cid'])}'">删除</a>
					</td>
	            </tr>
	        </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


